<div ms-controller="cardManager" class="card-manager">
  <p class="path">您现在的位置为：<span ms-text="@breadcrumb">固办-领用单管理</span></p>
  <form class="form-inline" onsubmit="return false;">
    <div class="form-group">
      <label for="cardNumber">卡片号</label>
      <input type="text" class="form-control" id="cardNumber" ms-duplex="@cardNumber">
    </div>
    <div class="form-group">
      <label for="goodsCode">物品代码</label>
      <input type="text" class="form-control" id="goodsCode" ms-duplex="@goodsName"
             ms-keydown="@chooseGoods($event) | enter">
    </div>
    <div class="form-group">
      <label for="goodsBook">账册</label>
      <input type="text" class="form-control" id="goodsBook" ms-duplex="@goodsBookName"
             ms-keydown="@chooseCondition($event) | enter">
    </div>
    <div class="form-group">
      <label for="barcode">条形码</label>
      <input type="text" class="form-control" id="barcode" ms-duplex="@barcode">
    </div>
    <div class="form-group">
      <label for="dept">当前科室</label>
      <input type="text" class="form-control" id="dept" ms-duplex="@deptAccountName" readonly>
    </div>
    <div class="form-group double-input">
      <label for="buyStartDate">购置日期</label>
      <input type="text" class="form-control" id="buyStartDate" ms-duplex="@buyStartDate" readonly>~
      <input type="text" class="form-control" id="buyEndDate" placeholder="" ms-duplex="@buyEndDate" readonly>
    </div>
    <div class="form-group">
      <label for="machineCode">仪器编码</label>
      <input type="text" class="form-control" id="machineCode" ms-duplex="@machineName"
             ms-keydown="@chooseInstrumentCode | enter">
    </div>
    <div class="form-group">
      <label for="scrapStatus">报废情况</label>
      <select name="" id="scrapStatus" class="form-control" ms-duplex="@scrapStatus">
        <option value="zc">正常</option>
        <option value="bf">报废</option>
        <option value="db">待报废</option>
        <option value="all">全部</option>
      </select>
    </div>
    <div class="form-group" :if='@iKsdm'>
      <label for="finishDisCardTime">报废时间</label>
      <input type="text" class="form-control" id="finishDisCardTime" ms-duplex="@finishDisCardTime" readonly>
    </div>
    <div class="form-group">
      <label for="manufacturer">生产厂商</label>
      <input type="text" class="form-control" id="manufacturer" ms-duplex="@manufacturer"
             ms-keydown="@chooseShop($event,0) | enter">
    </div>
    <div class="form-group">
      <label for="supplier">供应商</label>
      <input type="text" class="form-control" id="supplier" ms-duplex="@supplier"
             ms-keydown="@chooseShop($event,1) | enter">
    </div>
    <div class="form-group">
      <label for="nullifyStatus">作废情况</label>
      <select name="" id="nullifyStatus" class="form-control" ms-duplex="@nullifyStatus">
        <option value="yx">有效</option>
        <option value="zf">作废</option>
        <option value="all">全部</option>
      </select>
    </div>
    <div class="form-group">
      <label for="isGive">是否赠送</label>
      <select name="" id="isGive" ms-duplex="@isGive" class="form-control">
        <option value="all">全部</option>
        <option value="no">否</option>
        <option value="yes">是</option>
      </select>
    </div>
    <div class="form-group double-input">
      <label for="applyStartDate">报关时间</label>
      <input type="text" class="form-control" id="applyStartDate" ms-duplex="@applyStartDate" readonly>~
      <input type="text" class="form-control" id="applyEndDate" placeholder="" ms-duplex="@applyEndDate" readonly>
    </div>
    <div class="form-group double-input">
      <label for="priceStart">价格段</label>
      <input type="text" class="form-control" id="priceStart" ms-duplex="@priceStart">~
      <input type="text" class="form-control" id="priceEnd" placeholder="" ms-duplex="@priceEnd">
    </div>
    <div class="form-group">
      <label for="skNumber">申康编号</label>
      <input type="text" class="form-control" id="skNumber" ms-duplex="@skNumber">
    </div>
    <div class="form-group">
      <label for="skNumber">是否分页</label>
      <label class="radio-inline" style="width: 40px;">
        <input type="radio" name="inlineRadioOptions" id="inlineRadio2" ms-duplex-boolean="@showPages" value="true"> 是
      </label>
      <label class="radio-inline">
        <input type="radio" name="inlineRadioOptions" id="inlineRadio3" ms-duplex-boolean="@showPages" value="false"> 否
      </label>
    </div>
    <div class="form-group">
      <button type="button" class="btn btn-sm btn-primary" ms-click="@search">查询</button>
      <button type="button" class="btn btn-sm btn-primary" ms-click="@exportExcel">导出</button>
      <button type="button" class="btn btn-sm btn-primary" ms-click="@back">返回</button>
      <button type="button" class="btn btn-sm btn-primary btn-repairBill" :if='@iKsdm'  ms-click="@repairBill">生成维修单</button>
    </div>
  </form>
  <div class="table-container">
    <xmp ms-widget="{is:'ms-tableFixed',id:@tableComponentsID[0],header:@header,row:@row,sourceData:@data,height:'500',showPages:@showPages,showOrder:true,chooseDataFun:@viewCardDetail,showClickClass:true,elementID:'cardManager'}"></xmp>
  </div>
  <div class="clear"></div>
</div>